﻿
require('./modules/lang_ext.js');

var fs = require('fs');
var JSC = require('./modules/jsched');
var jsched;
var config, taskList;

try {
    config = require('./etc/config.js');
} catch (e) {
    console.log('Error: Failed to load "./etc/config.json".');
    process.exit(0);
}

console.log('Initializing jScheduler...');

jsched = new JSC(config);
jsched.loadTasks(function () {
    jsched.start();
});
